#include "../../Header/Device/Android.h"

DeviceAndroid::DeviceAndroid(int left, int top, int width, int height)
{
	glViewport(left, top, width, height);
}

void DeviceAndroid::RegisterUpdateFunc(void(*UpdateFunc)(float))
{
	m_UpdateFunc = UpdateFunc;
}

void DeviceAndroid::RegisterDrawFunc(void(*DrawFunc)())
{
	m_DrawFunc = DrawFunc;
}

void DeviceAndroid::RegisterSelectedFunc(void(*SelectedFunc)())
{
	m_SelectedFunc = SelectedFunc;
}

void DeviceAndroid::DestroyView()
{

}

void DeviceAndroid::Run()
{
	m_UpdateFunc(0);
	m_DrawFunc();
	//m_SelectedFunc();
}